<?php session_start();
if($_SESSION['username']=="" || $_SESSION['roleid']!=1)
{
?>
<script language="javascript">
window.location.href='system/login.php';
</script>
<?php
}
?>